<div class="form">


    <?php
    $form = $this->beginWidget('GxActiveForm', array(
        'id' => 'enquary-form',
        'enableAjaxValidation' => true,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
            ));
    ?>

    <p class="note">
        <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
    </p>

    <?php echo $form->errorSummary($model); ?>
    <div class="row">

        <?php echo $form->labelEx($model, 'enquiry_type'); ?>


        <?php
        echo $form->checkBoxList($model, 'enquiry_type', array(
            'O' => 'Official',
            'R' => 'Residential',
                ),array('style'=>'float:left;display: inline-block!important; margin-right: 20px;')
        );
        ?>

        <?php echo $form->error($model, 'enquiry_type'); ?>
    </div><!-- row -->
    <div class="row">

        <?php echo $form->labelEx($model, 'los_no'); ?>
        <?php echo $form->textField($model, 'los_no', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'los_no'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'category'); ?>
        <?php echo $form->textField($model, 'category', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'category'); ?>
    </div><!-- row -->


    <!--    <div class="row">
    <?php //echo $form->labelEx($model, 'installation_address');  ?>
    <?php //echo $form->textField($model, 'installation_address', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'installation_address');  ?>
        </div>-->

    <div class="row">
        <?php echo $form->labelEx($model, 'product_type'); ?>
        <?php echo $form->textField($model, 'product_type', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'product_type'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'clint_name'); ?>
        <?php echo $form->textField($model, 'clint_name', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'clint_name'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'coustmer_name'); ?>
        <?php echo $form->textField($model, 'coustmer_name', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'coustmer_name'); ?>
    </div><!-- row -->

    <div class="row">
        <?php echo $form->labelEx($model, 'alternate_no'); ?>
        <?php echo $form->textField($model, 'alternate_no', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'alternate_no'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'resi_address'); ?>
        <?php echo $form->textField($model, 'resi_address', array('maxlength' => 100)); ?>

        <?php echo $form->error($model, 'resi_address'); ?>
    </div>
    <!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'city'); ?>
        <?php echo $form->textField($model, 'city', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'city'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'landmark'); ?>
        <?php echo $form->textField($model, 'landmark', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'landmark'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'zone'); ?>
        <?php echo $form->textField($model, 'zone', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'zone'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'state'); ?>
        <?php echo $form->textField($model, 'state', array('maxlength' => 45)); ?>
        <?php echo $form->error($model, 'state'); ?>
    </div><!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'pin_code'); ?>
        <?php echo $form->textField($model, 'pin_code', array('maxlength' => 10)); ?>
        <?php echo $form->error($model, 'pin_code'); ?>
    </div><!-- row -->



    <!--    <div class="row">
    <?php //echo $form->labelEx($model, 'plan_name');  ?>
    <?php //echo $form->textField($model, 'plan_name', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'plan_name');  ?>
        </div>-->
    <!-- row -->
    <div class="row">
        <?php echo $form->labelEx($model, 'activation_date'); ?>
        <?php
        $this->widget('zii.widgets.jui.CJuiDatePicker', array(
            'model' => $model,
            'attribute' => 'activation_date',
            //
            // additional javascript options for the date picker plugin
            'options' => array(
                'showAnim' => 'fold',
                'changeMonth' => true,
                'changeYear' => true,
                'dateFormat' => 'mm-dd-yy',
                'yearRange' => '2012:2022',
                'size' => 35,
                'dateFormat' => 'mm-dd-yy',
                'defaultDate' => $model->activation_date,
            ),
        ));
        //echo $form->textField($model, 'valid_to', array('size' => 35, 'maxlength' => 20));
        ?>
        <?php echo $form->error($model, 'activation_date'); ?>
    </div><!-- row -->

    <!--    <div class="row">
    <?php //echo $form->labelEx($model, 'case_type');  ?>
    <?php //echo $form->textField($model, 'case_type', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'case_type');  ?>
        </div>-->
    <!-- row -->

    <!--    <div class="row">
    <?php //echo $form->labelEx($model, 'subsriber_confirmation');   ?>
    <?php //echo $form->dropDownList($model, 'subsriber_confirmation', Config::confirmation(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'subsriber_confirmation');   ?>
        </div> row 
        <div class="row">
    <?php //echo $form->labelEx($model, 'av_result');   ?>
    <?php //echo $form->dropDownList($model, 'av_result', Config::avResult(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'av_result');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'av_code');   ?>
    <?php //echo $form->dropDownList($model, 'av_code', Config::getYesNo(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'av_code');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'applied_for_connection');   ?>
    <?php //echo $form->dropDownList($model, 'applied_for_connection', Config::getYesNo(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'applied_for_connection');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'name_of_person_meet');  ?>
    <?php //echo $form->textField($model, 'name_of_person_meet', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'name_of_person_meet');  ?>
        </div>
        <div class="row">
    <?php //echo $form->labelEx($model, 'relationship');   ?>
    <?php //echo $form->dropDownList($model, 'relationship', GxHtml::listDataEx(Relationship::model()->findAllAttributes(null, true))); ?>
    
    <?php //echo $form->error($model, 'relationship');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'remarks');  ?>
    <?php //echo $form->textField($model, 'remarks', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'remarks');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'get_location');  ?>
    <?php //echo $form->textField($model, 'get_location', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'get_location');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'resident');   ?>
    <?php //echo $form->dropDownList($model, 'resident', Config::resident(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'resident');   ?>
        </div>
        <div class="row">
    <?php //echo $form->labelEx($model, 'income');  ?>
    <?php //echo $form->textField($model, 'income', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'income');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'organization');   ?>
    <?php //echo $form->dropDownList($model, 'organization', Config::organization(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'organization');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'occupation');   ?>
    <?php //echo $form->dropDownList($model, 'occupation', Config::occupation(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'occupation');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'company');   ?>
    <?php //echo $form->dropDownList($model, 'company', Config::company(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'company');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'agri_land');  ?>
    <?php //echo $form->textField($model, 'agri_land', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'agri_land');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'distance_from_branch');  ?>
    <?php //echo $form->textField($model, 'distance_from_branch');  ?>
    <?php //echo $form->error($model, 'distance_from_branch');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'vehicle');   ?>
    <?php //echo $form->dropDownList($model, 'vehicle', Config::vehical(), array('prompt' => '--- Select ---')); ?>
    
    <?php //echo $form->error($model, 'vehicle');   ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'gate_colour');  ?>
    <?php //echo $form->textField($model, 'gate_colour', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'gate_colour');  ?>
        </div>
        <div class="row">
    <?php //echo $form->labelEx($model, 'wall_colour');  ?>
    <?php //echo $form->textField($model, 'wall_colour', array('maxlength' => 45));  ?>
    <?php //echo $form->error($model, 'wall_colour');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'person_image');  ?>
    
    <?php //echo $form->fileField($model, 'person_image', array('size' => 28, 'maxlength' => 50));   ?>
    <?php //echo $form->error($model, 'person_image');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'poi_mage');  ?>
    
    <?php //echo $form->fileField($model, 'poi_mage', array('size' => 28, 'maxlength' => 50));   ?>
    <?php //echo $form->error($model, 'poi_mage');  ?>
        </div> 
        <div class="row">
    <?php //echo $form->labelEx($model, 'poa_mage');  ?>
    
    <?php //echo $form->fileField($model, 'poa_mage', array('size' => 28, 'maxlength' => 50));   ?>
    <?php //echo $form->error($model, 'poa_mage');  ?>
        </div> row 
        <div class="row">
    <?php //echo $form->labelEx($model, 'signature');   ?>
    <?php //echo $form->fileField($model, 'signature', array('size' => 28, 'maxlength' => 50)); ?>
    
    <?php //echo $form->error($model, 'signature');   ?>
        </div> -->


    <?php
    echo GxHtml::submitButton(Yii::t('app', 'Save'), array('class' => 'btn btn-primary'));
    $this->endWidget();
    ?>
</div><!-- form -->